{% extends "base.html" %}

{% block title %}添加权限 - 管理系统{% endblock %}

{% block content %}
<div class="row justify-content-center">
    <div class="col-md-8">
        <div class="card">
            <div class="card-header">
                <h4 class="mb-0">添加权限</h4>
            </div>
            <div class="card-body">
                <form method="POST" action="{{ url_for('admin.add_permission') }}">
                    <div class="mb-3">
                        <label for="name" class="form-label">权限名称</label>
                        <input type="text" class="form-control" id="name" name="name" required>
                    </div>
                    <div class="mb-3">
                        <label for="description" class="form-label">描述</label>
                        <input type="text" class="form-control" id="description" name="description">
                    </div>
                    <button type="submit" class="btn btn-primary">添加权限</button>
                    <a href="{{ url_for('admin.permissions') }}" class="btn btn-secondary">返回</a>
                </form>
            </div>
        </div>
    </div>
</div>
{% endblock %} 